import axios from '@/request/http'

export default class wjfwSerivce {
  /**
   * 上传
   */
  static upload(data: unknown): Promise<any> {
    return axios.post('/fpi/wjfw/upload', data)
  }

  /**
   * 下载
   */
  static download(data: unknown): Promise<any> {
    return axios.post('/fpi/wjfw/download', data)
  }

  /**
   * 下载blob
   */
  static downloadBlob(data: unknown): Promise<Blob> {
    return axios.post('/fpi/wjfw/download', data, { responseType: 'blob' })
  }
}
